package datapool.item.equip
{
	import datapool.define.IDZoneDefine;
	import datapool.define.EquipDefine;

	/**
	 * @author Administrator
	 */
	public class EquipItem
	{
		public var itemID:uint;
		
		public function EquipItem()
		{
		}
		
		public function get equipType():int
		{
			if (itemID>=IDZoneDefine.ID_WEAPON_START && itemID<=IDZoneDefine.ID_WEAPON_END)
			{
				return EquipDefine.WEAPON;
			}
			if (itemID>=IDZoneDefine.ID_CAP_START && itemID<=IDZoneDefine.ID_CAP_END)
			{
				return EquipDefine.CAP;
			}
			if (itemID>=IDZoneDefine.ID_CLOTH_START && itemID<=IDZoneDefine.ID_CLOTH_END)
			{
				return EquipDefine.CLOTH;
			}
			if (itemID>=IDZoneDefine.ID_HEART_START && itemID<=IDZoneDefine.ID_HEART_END)
			{
				return EquipDefine.HEART;
			}
			if (itemID>=IDZoneDefine.ID_PIFENG_START && itemID<=IDZoneDefine.ID_PIFENG_END)
			{
				return EquipDefine.PIFENG;
			}
			if (itemID>=IDZoneDefine.ID_PIFENG_START && itemID<=IDZoneDefine.ID_RING_END)
			{
				return EquipDefine.RING;
			}
			if (itemID>=IDZoneDefine.ID_SHOSE_START && itemID<=IDZoneDefine.ID_SHOSE_END)
			{
				return EquipDefine.SHOSE;
			}
			
			return EquipDefine.NONETYPE;
		}
	}
}
